/**
 * 
 */
package com.ruanyun.tio.net.server.handler.bs;

import com.ruanyun.tio.net.common.PacketVo;
import com.ruanyun.tio.net.common.command.Command;
import com.ruanyun.tio.net.common.command.CommandHandler;
import com.ruanyun.tio.net.server.handler.ServerHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tio.core.ChannelContext;

/**
 *手机端心跳包响应handler
 */
@CommandHandler(Command.COMMAND_FRAME_MOBILE_HEARTBEAT)
public class MobileHeartbeatHandler implements ServerHandler {

	@SuppressWarnings("unused")
	private static Logger log = LoggerFactory.getLogger(MobileLoginHandler.class);

	/**
	 *
	 */
	public MobileHeartbeatHandler() {
	}

	@Override
	public void handler(PacketVo packet, ChannelContext channelContext) throws Exception {
		byte[] src = packet.getBody();
		log.info("手机心跳"+new String(src));

	}
}
